<?php
    
    namespace App\Module\Api\Validator;
    use App\System\Base\Validator\BaseValidator;

    /**
     * 定义验证器类
     * @author liujun
     */
    class AddCardValidator extends BaseValidator
    {
        protected $rules = [
            'q.id' => 'filled|integer',
            'q.accountIdCode' => 'required',
            'q.accountName' => 'required',
            'q.accountBankId' => 'required|integer',
            'q.bankBranchName' => 'required',
            'q.payPassword' => 'required'
        ];
        
        protected $messages = [

        ];

        protected $attributes = [
            'q.id' => 'ID',
            'q.accountIdCode' => '银行账户',
            'q.accountName' => '账户姓名',
            'q.accountBankId' => '银行',
            'q.bankBranchName' => '银行支行名称',
            'q.payPassword' => '支付密码'
        ];
    }